package com.geeguo.ebuilder.core.localcache.service;

import java.util.Map;

public interface LocalCacheService<V> {

    void initCustomCache(String cacheName, long maximumSize, long expireAfterAccess);

    V get(String key);

    Map<String, V> getAll(Iterable<String> keys);

    void put(String key, V value);

    void putAll(Map<String, V> map);

    void remove(String key);

    void removeAll(Iterable<String> keys);

    V get(String cacheName, String key);

    Map<String, V> getAll(String cacheName, Iterable<String> keys);

    void put(String cacheName, String key, V value);

    void putAll(String cacheName, Map<String, V> map);

    void remove(String cacheName, String key);

    void removeAll(String cacheName, Iterable<String> keys);

    void removeAllWithoutEvent(String cacheName, Iterable<String> keys);
}
